import java.util.Arrays;
import java.util.Scanner;

public class Test4 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < n; i++) {
            array[i] = scan.nextInt();
        }
        int flag = 0;
        for (int i = 0; i < n-2; i++) {
            if((array[i]%2 == 1)&&(array[i+1]%2 == 1)&&(array[i+2]%2 == 1)){
                System.out.println("true");
                flag = 1;
                break;
            }
        }
        if(flag == 0){
            System.out.println("false");
        }

    }
    public static void main6(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < n; i++) {
            array[i] = scan.nextInt();
        }
        int ret = n/2;
        Arrays.sort(array);
        int[] count = new int[n];
        int[] nums = new int[n];
        int j = 0;
        nums[0] = array[0];
        for (int i = 0; i < n; i++) {
          if(nums[j] == array[i]){
              count[j]++;
          }else{
              j++;
              nums[j] = array[i];
              i--;
          }
        }
        for (int i = 0; i < n; i++) {
            if(count[i] > ret){
                System.out.print(nums[i]);
            }

        }
    }
    public static void main5(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < n; i++) {
            array[i] = scan.nextInt();
        }
        int ret = 0;
        for (int x:array) {
            ret ^= x;
        }
        System.out.println(ret);
    }
    public static void main4(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] nums = new int[n];
        for (int i = 0; i < n; i++) {
            nums[i] = scan.nextInt();
        }
        int target = scan.nextInt();
        int flag = 0;
        for (int j = 0; j < n; j++) {
            if(nums[j]<target){
                int k = j+1;
                while(k<n){
                    if(nums[k]>target){
                        k++;
                    }else{
                        if(nums[j]+nums[k] == target){
                            System.out.println("["+j+","+k+"]");
                            flag = 1;
                            break;
                        }else{
                            k++;
                        }
                    }
                }
               if(flag == 1){
                   break;
               }
            }
        }
        if(flag == 0){
            System.out.println("找不到");
        }
    }
    public static int mybinarySearch(int[] array,int k) {
        int left = 0;
        int right = array.length-1;
       while(left<=right){
           int mid = left+(right-left)/2;
           if(k<array[mid]){
               right = mid - 1;
           } else if (k>array[mid]) {
               left = mid + 1;
           }else{
               return mid;
           }
       }
       return -1;

        /*for (int i = 0; i < array.length; i++) {
            if (array[i] == k) {
                return i;
            }
        }
        return -1;*/
    }
    public static void main3(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < n; i++) {
            array[i] = scan.nextInt();
        }
        int k = scan.nextInt();
        int ret = mybinarySearch(array,k);
        if(ret>=0){
            System.out.println("找到了，下标为"+ret);
        }else{
            System.out.println("找不到");
        }
        //Arrays.sort(array);
       /*int ret =  Arrays.binarySearch(array,4);
        if(ret>=0){
            System.out.println("找到了，下标为"+ret);
        }else{
            System.out.println("找不到");
        }*/
    }
    public static void main2(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < n; i++) {
            array[i] = scan.nextInt();
        }
        int left = 0;
        int right = n-1;
        while(left<right){
            if(array[left]%2==0){
                if(array[right]%2==1){
                    int tmp = array[left];
                    array[left] = array[right];
                    array[right] = tmp;
                    left++;
                    right--;
                }else{
                    right--;
                }

            }else{
                left++;
            }
        }
        System.out.println(Arrays.toString(array));
    }
    public static void main1(String[] args) {
        /**
         * Arrays.copyOf
         * Arrays.copyOfRange
         * 数组名.clone
         * arraycopy
         * 自己实现数组拷贝
         */
        int[] array = {0,1,2,3,4,5,6,7,8,9};
        int[] array1 = Arrays.copyOf(array,array.length-1);
        int[] array2 = Arrays.copyOf(array,array.length*2);
        int[] array3 = Arrays.copyOfRange(array,0,5);//左闭右开
        int[] array4 = array.clone();
        int[] array5 = new int[array.length];
        System.arraycopy(array,3,array5,6,array.length-7);
        System.out.println(Arrays.toString(array));
        System.out.println(Arrays.toString(array1));
        System.out.println(Arrays.toString(array2));
        System.out.println(Arrays.toString(array3));
        System.out.println(Arrays.toString(array4));
        System.out.println(Arrays.toString(array5));
        //自己实现
        int[] array6 = new int[array.length];
        for (int i = 0; i < array.length; i++) {
            array6[i] = array[i];
        }
        System.out.println(Arrays.toString(array6));

    }
}
